/*
 * @Description: 积分转账
 * @Date: 2022-12-09 14:00:11
 * @Author: lizhiqiang
 */
import { IntegralTransferAccount } from "@/types/api";
import { get, post } from "@/utils/request";
/**
 * 获取积分转账列表
 */
export const GetIntegralTransferAccountList = ( params: IntegralTransferAccount ) => {
    return post( "/integral-service/integral/integraltransferaccounts/list", params )
}
/**
 * 获取积分转账详情
 * @param pkAccountDc 
 * @returns 
 */
export const GetIntegralTransferAccount = ( pkAccountDc: string ) => {
    return get( `/integral-service/integral/integraltransferaccounts/info/${ pkAccountDc }` )
}
/**
 * 保存积分转账
 * @param params 
 * @returns 
 */
export const SaveIntegralTransferAccount = ( params: IntegralTransferAccount ) => {
    return post( "/integral-service/integral/integraltransferaccounts/save", params )
}
/**
 * 修改积分转账
 * @param params 
 * @returns 
 */
export const UpdateIntegralTransferAccount = ( params: IntegralTransferAccount ) => {
    return post( "/integral-service/integral/integraltransferaccounts/update", params )
}
/**
 * 删除积分转账记录
 * @param params 
 * @returns 
 */
export const DeleteIntegralTransferAccount = ( params: Array<string> ) => {
    return post( "/integral-service/integral/integraltransferaccounts/deleteBatch",params)
}